feat: Add media.get, cameras.live_views and can_stream_live_video - #499
Conversation
Bump @seamapi/types to 1.1092.0 and regenerate. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 542217301d
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| $res = Body::decode( | ||
| $this->client->request("GET", "/media/get", [ | ||
| "query" => $request_payload, | ||
| ]), | ||
| ); |
There was a problem hiding this comment.
Handle the redirect media format without JSON decoding
When callers pass the documented format: "redirect", this request cannot return the declared Media: with the default Guzzle configuration the 302 is followed and the downloaded image or video is passed to Body::decode(), which returns null, so Body::read() throws InvalidResponseError; with redirects disabled, Guzzle instead throws on the 302. Branch on this format and expose the redirect/download response appropriately, or omit the unsupported option from this SDK method.
Useful? React with 👍 / 👎.
Bumps
@seamapi/types1.1082.0 -> 1.1092.0 and regenerates (npm run generate+npm run format).New in the SDK:
$seam->media->get,$seam->cameras->live_views->{create,offer,stop}, theMedia/CameraLiveViewSession/CameraLiveViewAnswerresources, andcan_stream_live_videoon devices. Dependabot's bumps had stopped at 1.1082.0, which predates/media/get.🤖 Generated with Claude Code